<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./reset.css">
    <style>
        .item{
            width: 234px;
            height: 300px;
            background-color: #fff;
            display: inline-block; /*设置行内块元素*/
            box-sizing: border-box;/*保持盒子大小不变*/
            text-align: center;
            padding: 25px 10px;
            
        }
        .item:hover{
            box-shadow: 5px 5px #f00;
        }
        .item img{
            width: 160px;
            height: 160px;
        }
        .item > p{
            white-space: nowrap; /*设置文本不换行*/
            color: rgb(176,176,176);
            overflow: hidden;/*超出隐藏*/
            text-overflow: ellipsis;/*文本超出用省略号表示!*/
        }
        .item .price .new {
            color: rgb(255,103,0);
        }
        .item .price .old{
            color: #ff0000;
            text-decoration: line-through;/*设置下滑线*/
        }
         
    </style>
</head>
<body>
    <!--案例练习02 小米商城练习-->
    <a  class="item" href="../img/ipad.png">
        <img src="../img/ipad.png" alt="图片不存在!">
        <h3> Redmi Book 16 2024</h3>
        <p>47W 满血性能 | 小米澎湃智联 | 旗舰硬核品质，你值得拥有，快去购买一步，彰显省份！</p>
        <div class="price">
            <span class="new">1399元</span>
            <span class="old">1499元</span>
        </div>
    </a>
</body>
</html>